package com.example.demo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  目录类
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("directory")
public class Directory {
    @TableId(type = IdType.AUTO)
    private Integer id;
    /** 用户编号（外键） */
    private Integer userId;
    /** 笔记编号（外键） */
    private Integer noteId;
    /** 目录分组（可重复） */
    private Integer directoryGroup;
    /** 名字 */
    private String directoryName;
    /** 子组（组内的细分） */
    private Integer subGroup;
    /** 子组编号 */
    private Integer subId;

    public String toString() {
        return "Directory{id = " + id + ", userId = " + userId + ", noteId = " + noteId + ", directoryGroup = " + directoryGroup + ", subGroup = " + subGroup + ", subId = " + subId + "}";
    }
}
